<?php namespace Summer\Hjd\Updates;

use Schema;
use Winter\Storm\Database\Updates\Migration;

class BuilderTableCreateSummerHjdBonusType extends Migration
{
    public function up()
    {
        Schema::create('summer_hjd_bonus_type', function($table)
        {
            $table->engine = 'InnoDB';
            $table->increments('id')->unsigned();
            $table->timestamp('created_at')->nullable();
            $table->timestamp('updated_at')->nullable();
            $table->string('slug');
            $table->string('title');
            $table->integer('status')->nullable()->default(1);
            $table->string('change_slug');//流水标识
            $table->text('allot');//分配方案
            $table->decimal('fee_ratio', 10, 2)->nullable()->default(0.00);//税费比例
        });
    }
    
    public function down()
    {
        Schema::dropIfExists('summer_hjd_bonus_type');
    }
}
